package org.example.order.domain;

public enum DomainErrorCode implements ErrorCode {
    ORDER_NOT_FOUND("Order not found, keys: {0}"),
    ORDER_DETAIL_NOT_FOUND("Order detail not found, keys: {0}");
    private String message;

    DomainErrorCode(String message) {
        this.message = message;
    }

    @Override
    public String getCode() {
        return name();
    }

    @Override
    public String getMessage(Object... args) {
        return format(message, args);
    }
}
